<%--
  Created by IntelliJ IDEA.
  User: 陈俊雄
  Date: 2018/4/16
  Time: 18:25
--%>
<%@ page contentType="text/html;charset=UTF-8" %>
<div class="modal-header">
    <button class="close" ng-click="cancel()">
        <span aria-hidden="true">×</span>
    </button>
    <h3 class="modal-title" id="modal-title">{{ type == 0 ? '添加收单银行' : '修改收单银行'}}</h3>
</div>
<div class="modal-body" id="modal-body">
    <div class="ibox-content no-borders tab-content">
        <form name="myForm" class="form-horizontal">
            <div class="form-group">
                <label class="col-sm-2 control-label p-w-xs"><span class="text-danger">*</span>银行名称：</label>
                <div class="col-sm-10">
                    <input class="form-control b-r-sm" type="text" name="name" placeholder="必填"
                           ng-model="bankInfo.name" ng-blur="nameBlur($event, bankInfo.name)" required>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label p-w-xs"><span class="text-danger">*</span>状态：</label>
                <div class="col-sm-10">
                    <select class="form-control b-r-sm" name="bkStatus" ng-model="bankInfo.status"
                            ng-blur="statusBlur($event, bankInfo.status)" required
                    ng-options="+(x.firstValue) as x.name for x in bankStatus">
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label p-w-xs">备注：</label>
                <div class="col-sm-10">
                    <textarea class="form-control b-r-sm" ng-model="bankInfo.remark"
                              style="resize: none;height: 100px"></textarea>
                </div>
            </div>
        </form>
    </div>
    <div class="row">
        <div class="col-sm-12">
            <div class="center">
                <button class="btn btn-sm btn-primary" type="button" ng-click="nextBtn()"
                        ng-disabled="nextDisabled(myForm)">
                    确定
                </button>
            </div>
        </div>
    </div>
</div>
<%--
<div class="modal-footer">
    <row>
        <div class="col-sm-12">
            <div class="pull-left">
                <button class="btn btn-sm btn-success" type="button" ng-click="nextBtn()" ng-show="!(tab == 2)"
                        ng-disabled="!myForm.name.$valid || !myForm.bkStatus.$valid">
                    完成
                </button>
            </div>
            <div class="pull-right">
                <button class="btn btn-warning btn-sm" type="button" ng-click="cancel()">关闭</button>
            </div>
        </div>
    </row>
</div>--%>
